package com.note.app.controller;

import com.note.common.annotation.GatewayOnly;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 健康检查控制器
 * 提供Kubernetes探针检查端点
 */
@RestController
public class HealthCheckController {
    
    /**
     * 健康检查端点
     * 禁用网关检查，允许Kubernetes直接访问
     */
    @GetMapping("/k8s-health")
    @GatewayOnly(enabled = false)
    public ResponseEntity<String> healthCheck() {
        return ResponseEntity.ok("OK");
    }
} 